#include "gx_problem.h"
#include "gtest/gtest.h"

TEST(problem_test,one)
{
	ASSERT_EQ(0,number_of_one(0));
	ASSERT_EQ(1,number_of_one(1));
	ASSERT_EQ(3,number_of_one(100));
	ASSERT_EQ(8,number_of_one(255));
}

TEST(problem_test,two)
{
	ASSERT_EQ(0,number_of_one1(0));
	ASSERT_EQ(1,number_of_one1(1));
	ASSERT_EQ(3,number_of_one1(100));
	ASSERT_EQ(8,number_of_one1(255));
}
